<template>
  <div class="staffback" v-if="$route.query.staffCode">
    <div class="tip">员工背调</div>
    <div class="bottom">
      <div>征信记录：{{staffBackCheck1.creditInvestigationRecord}}</div>
      <div>违法犯罪：{{staffBackCheck1.illegalCrime}}</div>
      <div>法律纠纷：{{staffBackCheck1.legalDisputes}}</div>
      <div>背调结果：{{staffBackCheck1.backToneResult}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    staffBackCheck1:{
      required: false
    }
  },
  computed:{
    result() {
      let result = ''
      if(this.staffBackCheck1.backToneResult == '0'){
        result = '正常'
      }
      if(this.staffBackCheck1.backToneResult == '1'){
        result= '低风险'
      }
      if(this.staffBackCheck1.backToneResult == '2'){
        result= '中风险'
      }
      if(this.staffBackCheck1.backToneResult == '3'){
        result= '高风险'
      }
      return result
    }
  }
}
</script>

<style lang="scss" scoped>
.staffback{
  background-color: #fff;
  border-top: 10px solid #ebeef1;
  .tip{
    font-size: 18px;
    font-weight: 900;
    padding-left: 20px;
    height: 60px;
    line-height: 60px;
  }
  .bottom{
    display: flex;
    height: 50px;
    margin: 0 20px;
    padding-bottom: 20px;
    div{
      width: 200px;
      font-size: 14px;
    }
  }
}
</style>